<!doctype html>
<html>
<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0,user-scalable=no">
		<meta name="mobileOptimized" content="width">
		<meta name="handheldFriendly" content="true">
		<meta name="format-detection" content="telephone=no">
		<meta name="apple-touch-fullscreen" content="yes">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="Cache-Control" content="max-age=0">
		<meta http-equiv="expires" content="0">
		<title>我要推荐-美的地产全民经纪人</title>
		<link rel="stylesheet" type="text/css" href="css/style.css" >
		<script type="text/javascript">
		function myFunction(){
				var username=document.getElementById("username").value;
				var phone=document.getElementById("phone").value;

				if (checkName(username)){
					if (checkPhone(phone)){}
				}
		}
		function checkName(username){
			var re = /^$/
			if (re.test(username)){
				alert("请输入正确的客户姓名");
				return false;
			}
			else{
				return true;
			}
		}
		function checkPhone(phone){
		var re =/^1\d{10}$/
		if (re.test(phone)){
			
			return true;
		}
		else{
			alert("请输入正确的手机号码");
			return false;
		}
	}
    	</script>
</head>
<section class="main animated fadeInDown">
	<div class="main-box">
		<p class="rb-row"><input type="text" id="username" placeholder="客户姓名" class="input" value="" /></p>
		<p class="rb-row"><input type="tel" id="phone" placeholder="手机号码" class="input" value="" /></p>
		<p class="rb-row rb-select">
		<i class="icon-down-open-big"></i>
		</p>
		<p class="rb-row rb-select">
		<select id="selorderTime2" name="selorderTime2" class="select">
        	<option value="" id="product">请选择产品...</option>
            <option value="mdcgc">美的城高层-方正通透</option>
            <option value="pzyf">品质洋房 超大赠送</option>
            <option value="mdcsy">美的城商业</option>
		</select>
		<i class="icon-down-open-big"></i>
		</p>
		<div class="recommend-tips">
			<h6>提示</h6>
			<p>请务必提交真实的客户信息，若多次提交虚假信息，您的账号会被禁用。</p>
		</div>
		<p class="rb-submit"><input type="submit" value="马上推荐" onclick="myFunction()"  class="btn" id="J_submitRec"/></p>
	</div>
</section>
<aside class="recommend-pop">
	<div class="recommend-box">
		<h1 class="recommend-title"></h1>
		<div class="recommend-icon"></div>
        <div class="recommend-text">
			<p>如果客户成交，您将获得佣金！</p>
			<p class="user-get"></p>
        </div>
		<a href="" class="recommend-submit"><i class="recommend-ok"></i></a>
	</div>
</aside>
<div class="pop-bg"></div>	
	<footer class="foot"><a>© 美的地产</a></footer>	
</body>
</html>